package cn.tedu.store.temperatureDetection.controller;

import cn.tedu.store.common.ApiResult;
import cn.tedu.store.temperatureDetection.service.NucleicService;
import cn.tedu.store.util.NucleicQuery;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 75936
 * @version 1.0
 * @project demo_hesuan
 * @description
 * @date 2022-12-14 08:52:02
 */
@RestController
@RequestMapping("Nucleic")
public class NucleicController {
    @Resource
    private NucleicService nucleicService;

    @PostMapping("data")
    public ApiResult findNucleicData(@RequestBody NucleicQuery nucleicQuery){
        return ApiResult.ok(nucleicService.findPeopleNucleicCount(nucleicQuery));
    }
}
